cmake_minimum_required(VERSION 3.10)

project(test3 VERSION 0.1.0 LANGUAGES C)

include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}/Inc
)

set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/Bin)

set(SRC_LISTS
    Src/led.c
    Src/fan.c
    Src/temphum.c
    Src/votage.c
    Src/fileop.c
    Src/main.c
    Src/buzzer.c
    Src/keys.c
    Src/cjson.c
    Src/mqtt.c
)

add_executable(${PROJECT_NAME} ${SRC_LISTS})

link_directories(/usr/lib/arm-linux-gnueabihf)

target_link_libraries(${PROJECT_NAME} gpiod)
target_link_libraries(${PROJECT_NAME} cjson)
target_link_libraries(${PROJECT_NAME} mosquitto)
